/*
 * @Author: Klein
 * @Date: 2021-06-17 14:10:38
 * @Description: file content
 */

class Message {
  success(data) {
    return {
      success: true,
      code: 200,
      data,
    };
  }

  error(code, message) {
    return {
      success: false,
      data: null,
      code,
      message,
    };
  }
}

module.exports = new Message();
